import Vue from 'vue'
import Vuex from 'vuex'
import actions from './actions.js'
import getters from './getters.js'
import mutations from './mutations.js'

Vue.use(Vuex)

//定义数据
var state = {
    islist:true,//是否列表
    Guid:'',//查看页面guid
    type: '',//类型
    title: '',//标题
    onetitle: '',//一级标题
    onelink: '',//一级链接
    data: {},
    viewData:{}//查看页面数据
}

export default new Vuex.Store({
    state,
    mutations,
    getters,
    actions
})